Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sigar.ProcEnv for getting a process's environment #62

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

andrewkroh
Copy link
Member

This PR adds the ability to retrieve the environment variables used
to start a process. It is implemented for Linux, OS X, and FreeBSD.
Neither Windows nor OpenBSD are implemented at this time.

Closes #61

@codecov-io
Copy link

codecov-io commented Jan 11, 2017

Current coverage is 61.94% (diff: 83.33%)

Merging #62 into master will increase coverage by 0.53%

@@             master        #62   diff @@
==========================================
  Files            27         27          
  Lines          2441       2465    +24   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           1499       1527    +28   
+ Misses          722        715     -7   
- Partials        220        223     +3   

Powered by Codecov. Last update 171a3c9...f02767f

@@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Added support to `github.com/gosigar/sys/windows` for querying and enabling
privileges in a process token.
- Added utility code for interfacing with linux NETLINK_INET_DIAG. #60
- Added `ProcArgs` for getting a process's environment variables. #61
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should say ProcEnv?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Fixed.

This PR adds the ability to retrieve the environment variables used
to start a process. It is implemented for Linux, OS X, and FreeBSD.
Neither Windows nor OpenBSD are implemented at this time.

Closes elastic#61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants